#!/bin/bash
IP=$1
NICName=`ip route | grep $IP | awk -F '[ \t*]' '{print $3}'`
echo "/usr/lib64/nagios/plugins/check_dhcp  -r $IP -i $NICName" |/bin/bash
